export enum QuestionType {
  /**
   * 单选题:1
   */
  radio = 1,
  /**
   * 多选题:2
   */
  checkbox = 2,
  /**
   * 判断题:3
   */
  judge = 3,
  /**
   * 填空题:4
   */
  fill = 4,
  /**
   * 简答题:5
   */
  short = 5,
}
export enum difficultyType {
  /**
   * 简单:1
   */
  EASY = 1,
  /**
   * 普通:2
   */
  NORMAL = 2,
  /**
   * 困难:3
   */
  HARD = 3,
}
export const enum DifficultString {
  EASY = '简单',
  NORMAL = '普通',
  HARD = '困难',
}
export const MAP_DIFFICULT_TYPE = {
  [DifficultString.EASY]: difficultyType.EASY,
  [DifficultString.NORMAL]: difficultyType.NORMAL,
  [DifficultString.HARD]: difficultyType.HARD,
}
export const STATIC_QUESTION_TYPE = {
  [QuestionType.radio]: '单选题',
  [QuestionType.checkbox]: '多选题',
  [QuestionType.judge]: '判断题',
  [QuestionType.fill]: '填空题',
  [QuestionType.short]: '简答题',
}
const enum QuestionString {
  radio = '单选题',
  checkbox = '多选题',
  judge = '判断题',
  fill = '填空题',
  short = '简答题',
}
export const QUESTION_NUMBER = {
  [QuestionString.radio]: QuestionType.radio,
  [QuestionString.checkbox]: QuestionType.checkbox,
  [QuestionString.judge]: QuestionType.judge,
  [QuestionString.fill]: QuestionType.fill,
  [QuestionString.short]: QuestionType.short,
}
export const STATIC_QSRANK_TYPE = {
  [difficultyType.EASY]: '简单',
  [difficultyType.NORMAL]: '普通',
  [difficultyType.HARD]: '困难',
}
// 审核状态: 0.待审核，1.审核通过，2.审核拒绝
export enum AuditType {
  /**
   * 待审核:0
   */
  PENDING = 0,
  /**
   * 审核通过:1
   */
  PASS = 1,
  /**
   * 审核拒绝:2
   */
  REJECT = 2,
}
export const STATIC_AUDIT_TYPE = {
  [AuditType.PENDING]: '待审核',
  [AuditType.PASS]: '审核通过',
  [AuditType.REJECT]: '审核拒绝',
}

export enum CollectOrError {
  /**
   * 试题收藏记录:1
   */
  collect = 1,
  /**
   * 错题记录:2
   */
  error = 2,
}
export enum QuestionIsRight {
  /**
   * 未做:0
   */
  undo = 0,
  /**
   * 正确:1
   */
  right = 1,
  /**
   * 错误:2
   */
  error = 2,
}
/**
 * 试题顺序: 1:一致，2:顺序不一致，3:无固定答案
 */
export enum QuestionOrder {
  /**
   * 1:一致
   */
  ORDER = 1,
  /**
   * 2:顺序不一致
   */
  DIS_ORDER = 2,
  /**
   * 3:无固定答案
   */
  NOT_SURE = 3,
}
export const QuestionOrderText = {
  /**
   * 1:一致
   */
  [QuestionOrder.ORDER]: '顺序一致',
  /**
   * 2:顺序不一致
   */
  [QuestionOrder.DIS_ORDER]: '顺序不一致',
  /**
   * 3:无固定答案
   */
  [QuestionOrder.NOT_SURE]: '无固定答案',
}

export enum CHAT_MODEL {
  GENERAL = 'yzck-chat-model',
}
